/*
 * CharacterPatternGroup.cpp
 *
 *  Created on: 15.10.2012
 *      Author: caffeine
 */

#include "CharacterPatternGroup.h"
#include <log/Log.h>
#include <exception/OutOfBounds.h>

irr::core::stringc CharacterPatternGroup::getHref(irr::u32 index){
//	if (index>=list.size())
//		GEN_OutOfBounds_ERROR("");
	BOUNDS_TEST(index,list.size());
	/*
	if (index>=list.size()){
		GEN_OutOfBounds_ERROR("");
		return "";
	}
	*/
	return list[index];
}

CharacterPatternGroup::CharacterPatternGroup() {
	list.clear();
}

CharacterPatternGroup::~CharacterPatternGroup() {
	list.clear();
}

void CharacterPatternGroup::addRecord(irr::core::stringc href){
	list.push_back(href);
}

irr::u32 CharacterPatternGroup::size(){
	return list.size();
}
